package com.doone.telmarket.domain;

import java.io.Serializable;

/**
 * 
 * @author 吴同庆
 * @date 2009-9-18
 * @description 站点路径
 * @package     com.doone.telmarket.domain
 */
public class SitePath implements Serializable {

	private static final long serialVersionUID = -1353722747423506855L;

	private final static String PATH_DELIMITER = "//";

	private SiteDirectory[] directories;

	public SitePath(SiteDirectory[] directories) {
		this.directories = directories;
	}

	public String getPath() {
		StringBuffer buffer = new StringBuffer();
		buffer.append(PATH_DELIMITER);
		for (SiteDirectory directorie : directories) {
			buffer.append(directorie.getName());
			buffer.append(PATH_DELIMITER);
		}
		return buffer.toString();
	}

}
